<?php

namespace App\Http\Controllers\Api;

use App\Models\PayMethod;
use App\Transformers\PayMethodTransformer;
use Illuminate\Http\Request;

class PayMethodController extends Controller
{
    public function index()
    {
        $data = PayMethod::where('is_show', true)->get();

        return $this->response->collection($data, new PayMethodTransformer());
    }
}
